package com.qidi.service.impl;

import com.qidi.bean.Department;
import com.qidi.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhouXinBin
 * @create 2020-10-26-19:22
 */
@Service
public class DepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;
    public List<Department> getAllDepts() {
        List<Department> list = departmentMapper.selectByExample(null);
        return list;
    }
}
